package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class PayChannelReuqestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "payList";

    /**
     * 币种值跑，默认人民币CNY
     */
    private long currency ;




    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public long getCurrency() {
        return currency;
    }

    public void setCurrency(long currency) {
        this.currency = currency;
    }

    public PayChannelReuqestParams(String gameId) {
        setGameId(gameId);

    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeLong(this.currency);
    }

    protected PayChannelReuqestParams(Parcel in) {
        super(in);
        this.currency = in.readLong();
    }

    public static final Creator<PayChannelReuqestParams> CREATOR = new Creator<PayChannelReuqestParams>() {
        @Override
        public PayChannelReuqestParams createFromParcel(Parcel source) {
            return new PayChannelReuqestParams(source);
        }

        @Override
        public PayChannelReuqestParams[] newArray(int size) {
            return new PayChannelReuqestParams[size];
        }
    };
}
